/**
 * 
 */
package com.oraking.android.hybridapp.dev.korealaw.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.KeyEvent;
import android.widget.ImageView;

import com.oraking.android.hybridapp.dev.korealaw.R;

/**
 * 파일명          : KoreaLawIntro.java 
 * 작성일          : 2011. 10. 6.
 * 작성자          : <a href='http://oraking.springnote.com/' target='_blank'>Teddy</a>
 * Todo      :
 * 수정내용
 * -------------------------------------------------------------
 *      수정일      |      수정자      |              수정내용              
 * -------------------------------------------------------------
 *              |              |
 */

public class KoreaLawIntro extends Activity {
ImageView intro_image;
	
	Handler mHandler = new Handler();
	Runnable mRunnable = new Runnable() {
		
		public void run() {
			Intent i = new Intent(KoreaLawIntro.this, KoreaLawCn.class);
			i.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
			KoreaLawIntro.this.startActivity(i);
			finish();																// 백 버튼 눌렀을 경우 어플 완전 종료
		}
	};
    
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.korealawintro);
        
        mHandler.postDelayed(mRunnable, 3000);
	}
	
	public boolean onKeyDown(int keyCode, KeyEvent e) {
		if (keyCode == KeyEvent.KEYCODE_BACK) {
		}
		return false;
	} 
	
	public boolean onKeyDown1(int keyCode, KeyEvent e) {

		if (keyCode == KeyEvent.KEYCODE_HOME) {
			mHandler.removeCallbacks(mRunnable);
		}
		return false;
	}
}
